package com.houtai.dao;

import com.houtai.bean.TdCourseCollection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdCourseCollectionDao {
    /**
     * @Purpose:    修改
     * @param:      tdCourseCollection
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdCourseCollectionState(TdCourseCollection tdCourseCollection);
    /**
     * @Purpose:    添加课程收藏想信息
     * @param:      tdCourseCollection
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdCourseCollection(TdCourseCollection tdCourseCollection);
    /**
     * @Purpose:    查找课程收藏信息
     * @param:      course_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     int
     */
    TdCourseCollection findTdCourseCollection(@Param("user_id") int user_id, @Param("course_id") int course_id);
}
